home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 1NEHNHK (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  907 b   |  32 lines

  1. package com.sun.java.swing.event;
  2.  
  3. import java.util.EventObject;
  4.  
  5. public class ListDataEvent extends EventObject {
  6.    public static final int CONTENTS_CHANGED = 0;
  7.    public static final int INTERVAL_ADDED = 1;
  8.    public static final int INTERVAL_REMOVED = 2;
  9.    private int type;
  10.    private int index0;
  11.    private int index1;
  12.  
  13.    public ListDataEvent(Object source, int type, int index0, int index1) {
  14.       super(source);
  15.       this.type = type;
  16.       this.index0 = index0;
  17.       this.index1 = index1;
  18.    }
  19.  
  20.    public int getIndex0() {
  21.       return this.index0;
  22.    }
  23.  
  24.    public int getIndex1() {
  25.       return this.index1;
  26.    }
  27.  
  28.    public int getType() {
  29.       return this.type;
  30.    }
  31. }
  32.